package com.ymatou.iapi.payment.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.payment.parameter.QueryFqlCreditResultBean;
import com.ymatou.iapi.payment.service.QueryFqlCreditResultCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*分期乐查询授信结果
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_QueryFqlCreditResult{
	private static QueryFqlCreditResultBean queryfqlcreditresultBean;
	private static QueryFqlCreditResultCall queryfqlcreditresultCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("分期乐查询授信结果");
	}

	@Before
	public void caseUp() {
		queryfqlcreditresultBean=new QueryFqlCreditResultBean();
		queryfqlcreditresultCall=new QueryFqlCreditResultCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(queryfqlcreditresultCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	@Ignore
	public void Tc_QueryFqlCreditResult_001() {
		Logger.start(true,"分期乐查询授信结果成功");
		try {
			queryfqlcreditresultBean.setUserId(25328855);
			queryfqlcreditresultCall.setData(queryfqlcreditresultBean);
			queryfqlcreditresultCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}